-
Home
-
ShopGlut – Business Site and Store Builder for WooCommerce
-
1.6.4
-
Code
-
Classes
- ProductBadges
| Total Complexity |
110 |
| Dependencies |
1 |
| Dependents |
0 |
| Total lines |
661 |
| Lines of code |
559 |
| Logical lines of code |
271 |
| Comment lines |
18 |
| Methods |
19 |
| Properties |
0 |
Methods 19
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| sanitize_badge_data() |
B |
42 |
23 |
48 |
| check_badge_conditions() |
A |
47 |
12 |
34 |
| get_badge_assignment_info() |
A |
46 |
11 |
38 |
| build_badge_styles() |
A |
49 |
11 |
31 |
| should_display_badge() |
A |
51 |
10 |
25 |
| render_badge_modal() |
A |
34 |
1 |
156 |
| handle_save_badge() |
A |
49 |
8 |
28 |
| handle_toggle_badge_status() |
A |
53 |
8 |
20 |
| render_badge_card() |
S |
44 |
3 |
56 |
| renderBadgesList() |
S |
52 |
4 |
30 |
| display_product_badges() |
S |
59 |
4 |
16 |
| handle_badge_preview() |
S |
56 |
3 |
15 |
| get_product_badges() |
S |
64 |
3 |
10 |
| render_product_options() |
S |
61 |
2 |
12 |
| render_category_options() |
S |
62 |
2 |
11 |
| render_tag_options() |
S |
62 |
2 |
11 |
| __construct() |
S |
79 |
1 |
3 |
| init() |
S |
67 |
1 |
7 |
| render_badge() |
S |
65 |
1 |
8 |